<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE xsl:stylesheet  [
	<!ENTITY nbsp   "&#160;">
	<!ENTITY copy   "&#169;">
	<!ENTITY reg    "&#174;">
	<!ENTITY trade  "&#8482;">
	<!ENTITY mdash  "&#8212;">
	<!ENTITY ldquo  "&#8220;">
	<!ENTITY rdquo  "&#8221;"> 
	<!ENTITY pound  "&#163;">
	<!ENTITY yen    "&#165;">
	<!ENTITY euro   "&#8364;">
]>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:page="urn:page">
<xsl:output method="html" encoding="utf-8" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
<xsl:template match="/">
<xsl:if test="count(rows/row)=0">
文章不存在
</xsl:if>
<xsl:if test="count(rows/row)!=0">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="/Css/admin/ui-v1.0.css" rel="stylesheet" type="text/css" media="all"/>
<xsl:text disable-output-escaping="yes">
<![CDATA[
<script type="text/javascript" src="/js/jquery/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="/js/jquery/jquery-ui-1.8.10.custom.min.js"></script>
<script type="text/javascript" src="/js/admin/v3.2.js"></script>
<script type="text/javascript">
$(function(){
	function reload(){
		location.reload()
	}
/*	$('#btnIssue').live('click',function(){
		$.doCmd('Issue',
			{query:'id='+$('#articleid').val(),query:'guid={request:guid}',confirm:true,
				success:reload})
	})*/
	$('#btnAudit1').live('click',function(){
		$.doCmd('Audit1',
			{query:'id='+$('#articleid').val(),confirm:true,title:'通过初审',
				success:reload})
	})
	$('#btnAudit2').live('click',function(){
		$.doCmd('Audit2',
			{query:'id='+$('#articleid').val(),confirm:true,title:'通过终审',
				success:reload})
	})
	$('#btnBack').live('click',function(){
		$.doCmd('Rework',
			{query:'id='+$('#articleid').val(),confirm:true,title:'返工操作',
				success:reload})
	})
	$('#btnDel').live('click',function(){
		$.doCmd('Delete',
			{query:'id='+$('#articleid').val(),confirm:true,title:'删除文章',
				success:reload})
	})
	$('#btnTreeSearch').live('click',function(){
		top.frames['leftFrame'].$("#treeNav").jstree("search",this.rel);;
	})
	$('#btnMove').live('click',function(){
			$('#divMove').dialog({
				buttons :{
					'确认':function(){
					},
					'取消':function(){
						$(this).dialog('close');
					}
				}
				});
			$('#amdChannelName').autocomplete({
				delay: 0,
				source: function( request, response ) {
					var query= 'f='+encodeURI('channelSelect')+'&keywords='+encodeURI(request.term);
					$.ajax({
						type:'get',
						dataType: "json",
						beforeSend : function(xhr){	xhr.setRequestHeader("HTTP_X_XMLHTTP_MODE", "true"); },
						url:location.pathname,
						data: query,
						success: response
					})
				},
				select: function( event, ui ) {
					$('#amdChannelName').val(ui.item.label);
					$('#channelid').val(ui.item.value);
					return false;
/*					log( ui.item ?
						"Selected: " + ui.item.label :
						"Nothing selected, input was " + this.value);*/
				}
			});
	})
	$('#btnNewHouse').click(function(){
		$('#divRelNewHouse').dialog();
		$('#newhouse').autocomplete({
				delay: 0,
				source: function( request, response ) {
					var query= 'f=aaa&keywords='+encodeURI(request.term);
					alert(query);
					$.ajax({
						type:'get',
						dataType: "json",
						beforeSend : function(xhr){	xhr.setRequestHeader("HTTP_X_XMLHTTP_MODE", "true"); },
						url:location.pathname,
						data: query,
						complete:function(xhr){
							alert(xhr.responseText);
						}
						//success: response
					})
				},
				select: function( event, ui ) {
					$('#newhouse').val(ui.item.label);
					$('#newhouseid').val(ui.item.value);
					return false;
				}
			});
	});
	$('#btnGoBack,#titleGoBack').click(function(){
		location.href= $('#_backurl_').val();
	});
})
</script>]]></xsl:text>
<title>查看文章</title>
</head>
<body class="mainContent">
<input type="hidden" id="_backurl_" value="{page:xServer('HTTP_referer')}"/>
<xsl:for-each select="rows/row">
<input type="hidden" id="articleid" value="{id}"/>
<!--外围边框-->
<div class="box"> 
	<!--管理菜单-->
	<xsl:value-of select="page:xLoadList('文章查看标题',0,f_channel_guid)" disable-output-escaping="yes"/>

	<!--搜索及切换-->
	
	<div class="content pb10">
		<div class="tab mb10">
			<ul class="fl">
				<li class="check"><a href="newslist.html">查看文章</a></li>
			</ul>
			<div class="button fl">
				<a class="split">|</a> 
				<a href="###" class="btn2" id="btnBack">返工</a>
				<a href="###" class="btn2" id="btnAudit1">初审</a>
				<a href="###" class="btn2" id="btnAudit1">终审</a>
				<a href="###" class="btn2" id="btnMove">移动</a>
				<a href="###" class="btn2" id="btnDel">删除</a>
				<a class="split">|</a>
			</div>
			<div class="icons">
				<a href="topset.html?id={id}" class="icon headnews" target="_blank">头条</a>
				<a href="picset.html?id={id}" class="icon pic" target="_blank">图片</a>
				<span class="link">
				<a href="{page:xIIF(f_type=1,'edit','editold')}.html?id={page:xRequest('id')}">修改</a><a href="{f_url}" target="_blank">预览</a><a href="###" class="font_red" id="btnNewHouse">相关楼盘</a><a href="#">上传附件</a><a href="#">计数</a><!--<a href="#">更多</a>-->
				</span>
			</div>
		</div>
		<dl class="editcontent editbg">
			<dt>标题:</dt>
			<dd>
				<ul>
					<li class="f14B"> <xsl:value-of select="f_title"/> </li>
					<li class="font_red">[<xsl:choose>
							<xsl:when test="f_issuestatus=0">
							初稿
							</xsl:when>
							<xsl:when test="f_issuestatus=1">
							已编
							</xsl:when>
							<xsl:when test="f_issuestatus=10">
							已审
							</xsl:when>
							<xsl:when test="f_issuestatus=15">
							已签
							</xsl:when>
							<xsl:when test="f_issuestatus=20">
							已发
							</xsl:when>
							<xsl:otherwise>
							未知
							</xsl:otherwise>
							</xsl:choose>]</li>
				</ul>
			</dd>
			<dt>关键字:</dt>
			<dd>
				<ul>
					<li><a href=""><xsl:value-of select="f_keywords"/></a>(0.00%)</li>
				</ul>
			</dd>
			<dt>发布路径:</dt>
			<dd> <a href="{f_url}"><xsl:value-of select="f_url"/></a> </dd>
			<dd class="auto">
				<div class="viewContent mB10">
					<xsl:value-of select="f_content" disable-output-escaping="yes"/>
				</div>
			</dd>
			<dt>作者:</dt>
			<dd>
				<ul>
					<li><xsl:value-of select="f_author"/></li>
					<li class="font_gray">录入人:</li>
					<li><xsl:value-of select="f_addmastername"/></li>
					<li class="font_gray">来源:</li>
					<li><xsl:value-of select="f_comefrom"/></li>
					<li class="font_gray">字数:</li>
					<li>123</li>
				</ul>
			</dd>
			<dt>简介:</dt>
			<dd style="overflow:auto">
				<xsl:value-of select="f_intro"/>
			</dd>
			<dt>发表于:</dt>
			<dd><xsl:value-of select="f_addtime"/></dd>
			<!--
			<dd>
				<hr />
			</dd>
			<dt class="auto">本关文章：</dt>
			<dd class="auto">
				<ul>
					<li><a href="#">全新帕萨特已到店001</a><span class="time">2011-04-25</span></li>
					<li><a href="#">目前店内已经接受预订，感兴趣的朋友可到店内详询001</a><span  class="time">2011-04-25</span></li>
					<li><a href="#">创造出一系列精致的细节设计001</a><span  class="time">2011-04-25</span></li>
					<li><a href="#">从当代前卫建筑作品与传统窗格图 案中提取001</a><span  class="time">2011-04-25</span></li>
				</ul>
			</dd>-->
		</dl>
	</div>
</div>
</xsl:for-each>
<div title="移动文章" id="divMove" style="display:none">
	<table cellspacing="0" cellpadding="1">
		<tr>
			<td align="right">目标栏目名:</td>
			<td ><input name="channelid" type="hidden" value="" id="channelid" /><input id="amdChannelName" value="" size="20" type="text" name="amdChannelName" jquery1303695877759="124" />
				*</td>
		</tr>
		<tr>
			<td align="right"></td>
			<td><label><input id="isKeep" value="y" checked="checked" type="checkbox" name="isKeep" class="checkbox"/>
				原栏目保留该文章 </label></td>
		</tr>
		<tr>
			<td align="right"></td>
			<td><label><input id="isTopnews" value="y" type="checkbox" name="isTopnews" class="checkbox"/>
				同时移动原栏目头条</label> </td>
		</tr>
		<tr>
			<td align="right"></td>
			<td><label><input id="keeyTopnewsOrder" value="y" type="checkbox" name="keeyTopnewsOrder" class="checkbox"/>
				保留头条顺序 </label></td>
		</tr>
	</table>
</div>
<div title="相关楼盘信息" id="divRelNewHouse" style="display:none">
	<table cellspacing="0" cellpadding="1">
		<tr>
			<td align="right">请选择楼盘:</td>
			<td ><input name="newhouseid" type="hidden" value="" id="newhouseid" />
			<input id="newhouse" value="" size="20" type="text" name="newhouse" jquery1303695877759="124" />
				*</td>
		</tr>
	</table>
</div>
</body>
</html>
</xsl:if>
</xsl:template>
</xsl:stylesheet>